﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" xmlns:local="clr-namespace:tagsChart" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"                                                                xmlns:SampleData="clr-namespace:tagsChart.Expression.Blend.SampleData.tagCountSampleDataSource"                                                                xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"                                                                x:Class="tagsChart.MainPage"
    d:DesignWidth="640" d:DesignHeight="480" Loaded="UserControl_Loaded">
	<UserControl.Resources>
		<SampleData:TagCount x:Key="tagCountSampleDataSource" d:IsDataSource="True"/>
		<DataTemplate x:Key="TagTemplate">
			<StackPanel>
				<TextBlock Text="{Binding Count}"/>
				<TextBlock Text="{Binding Name}"/>
			</StackPanel>
		</DataTemplate>
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource tagCountSampleDataSource}}">
 
  	
  	


	
		
		<Grid.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FFE5F015" Offset="0"/>
				<GradientStop Color="#FFF6B4B4" Offset="1"/>
			</LinearGradientBrush>
		</Grid.Background>
		<TextBlock x:Name="textBlock" Height="21" Margin="23,4,20,0" VerticalAlignment="Top" Text="TextBlock" TextWrapping="Wrap"/>
		<chartingToolkit:Chart Margin="34,60,60,94" Title="Chart Title">
			<chartingToolkit:Chart.DataContext>
				<PointCollection>
					<Point>1,10</Point>
					<Point>2,20</Point>
					<Point>3,30</Point>
					<Point>4,40</Point>
				</PointCollection>
			</chartingToolkit:Chart.DataContext>
			<chartingToolkit:ColumnSeries DependentValuePath="X" IndependentValuePath="Y" ItemsSource="{Binding TagCollection, Source={StaticResource tagCountSampleDataSource}}" IndependentValueBinding="{Binding Name, Mode=OneWay}" DependentValueBinding="{Binding Count, Mode=OneWay}"/>
		</chartingToolkit:Chart>
 
  	
  	


	
		
	</Grid>
</UserControl>
